<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>登录</title>
</head>
<body>

<div>

    <h2>我是服务器：${pageContext.request.localPort}</h2>
    <h2>当前sessionId：${pageContext.session.id}</h2>


    <div>
        <h2>用户登录入口</h2>
    </div>

    <div>
        <span style="color:red">${msg}</span>
        <form method="post" action="/login">
            <div class="form-group">
                <label for="username">用户名:</label>
                <input
                        type="text"
                        id="username"
                        name="username"
                        placeholder="User name"
                        required autofocus
                >
            </div>


            <div class="form-group">
                <label for="pwd">密码:</label>
                <input
                        type="password"
                        id="pwd"
                        name="pwd"
                        placeholder="User password"
                        required
                >
            </div>
            <input type="submit" value="登 录">
        </form>
    </div>
</div>

</body>
</html>
